package com.example.service.impl;

import com.example.dao.HealthMetricsDao;
import com.example.entity.HealthMetrics;
import com.example.service.HealthMetricsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class HealthMetricsServiceImpl implements HealthMetricsService {

    @Autowired
    private HealthMetricsDao healthMetricsDao;

    @Override
    public List<HealthMetrics> getAllHealthMetrics() {
        return healthMetricsDao.getAllHealthMetrics();
    }

    @Override
    public HealthMetrics getHealthMetricsById(Integer id) {
        return healthMetricsDao.getHealthMetricsById(id);
    }

    @Override
    public int addHealthMetrics(HealthMetrics metrics) {
        return healthMetricsDao.addHealthMetrics(metrics);
    }

    @Override
    public int updateHealthMetrics(HealthMetrics metrics) {
        return healthMetricsDao.updateHealthMetrics(metrics);
    }

    @Override
    public int deleteHealthMetrics(Integer id) {
        return healthMetricsDao.deleteHealthMetrics(id);
    }
}